import Vue from 'vue'
import VueRouter from 'vue-router'
import IndexView from "@/views/IndexView";
import LoginVue from "@/views/LoginVue";
import axios from "axios";

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'index',
        component: IndexView,
        children:[

        ]

    }, {
        path: '/login',
        name: 'login',
        component: LoginVue,
    }
]
const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})



export default router
